package com.tengsheng.fu.restful.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("/rest")
public class RestfulController {


    @RequestMapping("/getInfo")
    @ResponseBody
    public Map<String,Object> getInfo(){
        Map<String,Object> info=new HashMap<>();
        info.put("code","200");
        return info;
    }


}
